package com.elite.entity;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;


public class User {
	@NotEmpty(message = "userName 不能为null")
    private String userName;
	@NotEmpty(message = "password 不能为null")
    private String password;
	@NotNull(message = "age 不能为null")
    private Integer age;

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                '}';
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
